package Test.JStruts2Test.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import Test.JStruts2Test.dto.TestBean;

import com.core.framework.db.jdbc.BaseDao;
import com.util.AppUtils;
@Repository
public class TestDao  extends BaseDao<TestBean,String>
{

	
	
	public List<Map<String,Object>> test()
	{
		String sql = "select * from SS_User " ;
		System.out.println(sql);
		System.out.println(this.queryForList(sql).size());
		return this.queryForList(sql);
	}
	
	public static void main(String[] args )
	{
		TestDao test = AppUtils.getBean(TestDao.class);
		test.findPage(null);
//		jdbcTemplate.setDataSource((DataSource) AppUtils.getBean("dataSource"));
//		String sql = "select * from SYS_TD_OperLog " ;
//		System.out.println(jdbcTemplate.queryForList(sql));
//		JdbcTemplate jdbcTemplate = (JdbcTemplate) AppUtils.autowiredBean(JdbcTemplate.class);
//		String sql = "select * from SYS_TD_OperLog " ;
//		System.out.println(jdbcTemplate.queryForList(sql));
		//test.test();
	}

		
}
